﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace DropBoxClient.Entities
{
    [DataContract]
    [KnownType(typeof(FileMeta))]
    [KnownType(typeof(FolderMeta))]
    public class Meta
    {
        [DataMember(Name = "size")]
        public string Size { get; set; }

        [DataMember(Name = "bytes")]
        public long Bytes { get; set; }

        [DataMember(Name = "thumb_exists")]
        public bool ThumbExists { get; set; }

        [DataMember(Name = "rev")]
        public string Rev { get; set; }

        [DataMember(Name = "modified")]
        public string ModifiedTime { get; set; }

        [DataMember(Name = "path")]
        public string Path { get; set; }

        [DataMember(Name = "is_dir")]
        public bool IsDirectory { get; set; }

        [DataMember(Name = "icon")]
        public string Icon { get; set; }

        [DataMember(Name = "root")]
        public string Root { get; set; }

        [DataMember(Name = "revision")]
        public long Revision { get; set; }
    }
}
